package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IAttendFragmentContract;
import com.clouddot.baipai.contract.IClassFragmentContract;
import com.clouddot.baipai.model.AttendFragmentModel;
import com.clouddot.baipai.model.ClassFragmentModel;
import com.clouddot.baipai.presenter.AttendFragmentPresenter;
import com.clouddot.baipai.presenter.ClassFragmentPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class AttendFragmentModule {

    private IAttendFragmentContract.IView mView;

    public AttendFragmentModule(IAttendFragmentContract.IView view) {
        mView = view;
    }

    @Provides
    public IAttendFragmentContract.IPresenter providerPresenter() {
        return new AttendFragmentPresenter(mView, new AttendFragmentModel(mView.getContext()));
    }
}
